<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>悬停提示文本</title>
		<style type="text/css">
			.b {
				float: left;
				width: 250px;
				height: 40px;
			}

			ul {
				list-style-type: none;
				margin: 0;
				padding: 0;
				overflow: hidden;
				background-color: #333333;
			}

			li {
				display: inline;
				float: left;
			}

			li a {
				display: block;
				color: white;
				text-align: center;
				padding: 14px 16px;
				text-decoration: none;
			}

			li a:hover {
				background-color: #111;
			}

			.a {
				display: block;
				width: 100px;
			}

			.a:visited {
				background-color: palegreen;
			}

			.chan:link {
				background-color: #00B03E;
			}

			.active {
				background-color: #4CAF50;
			}

			.tooltip {
				position: relative;
				display: inline-block;
				float:left;
				width: 720px;
				height: 30px;
				list-style-type: none;
				overflow: hidden;
				background-color: #333333;
				color: white;
				text-align:left;
				padding: 10px 15px;
				text-decoration: none;
			}
			
			.tooltip .tooltiptext {
				visibility: hidden;
				width: 150px;
				background-color: black;
				color: #fff;
				text-align: center;
				padding: 5px 0;
				border-radius: 6px;
			}

			.tooltip:hover .tooltiptext {
				visibility: visible;
			}

			.tooltip .tooltiptext {
				top: -5px;
				left: 105%;
			}
		</style>
	</head>
	<body>
		<div class="b">
			<ul>
				<li><a href="#" class="chan">产品</a></li>
				<li><a href="#">大数据</a></li>
				<li><a href="#">解决方案</a>
			</ul>
		</div>
		<div class="tooltip">社区
			<span class="tooltiptext">提示文本</span>
		</div>


	</body>
</html>
